package parts;

/**
 * @author christopher
 *
 * Interface for all objects representing parts 
 */
public abstract class APart {
	
	/**
	 * @return The name of the part
	 */
	public abstract String getName();
	
	/**
	 * @param newName The new name of the part
	 */
	public abstract void setName(String newName);
	
	/**
	 * @return The value of the part
	 */
	public abstract double getValue();
	
	/**
	 * @param newValue The new value of the part
	 */
	public abstract void setValue(double newValue);
	
	/**
	 * @return Whether the object is a composite, default if false  
	 */
	public boolean isComposite() {
		return false;
	}
	
}
